<template>
  <div>
    <el-row :gutter="20">
      <el-col :span="16">
<el-card shadow="always" class="box-card">
      <div class="tableTitle"><span>任务详情</span></div>
      <div class="devTitle"><span>冲压机</span></div>
      <div>
        <div class="tableStyle">
          <div class="labelS">设备名称</div>
          <div class="contentS">冲压机巡检计划</div>
          <div class="labelS">设备编号</div>
          <div class="contentS">220</div>
        </div>
        <div class="tableStyle">
          <div class="labelS">规格型号</div>
          <div class="contentS">LK32*8732-010012</div>
          <div class="labelS">使用状态</div>
          <div class="contentS"><span class="nocomplate complate">在用</span></div>
        </div>
        <div class="tableStyle">
          <div class="labelS">所属部门</div>
          <div class="contentS">2021-12-02 21:23:45</div>
          <div class="labelS">位置</div>
          <div class="contentS">2021-12-02 21:23:45</div>
        </div>
         <div class="tableStyle">
          <div class="labelS">任务编号</div>
          <div class="contentS">BHJ00823042</div>
          <div class="labelS">保养类型</div>
          <div class="contentS">周</div>
        </div>
        <div class="tableStyle">
          <div class="labelS">任务有效时间</div>
          <div class="contentS">2021-12-02 21:23:45</div>
        </div>
        <div class="tableStyle">
          <div class="labelS">负责人</div>
          <div class="contentS">ssq</div>
          <div class="labelS">任务状态</div>
          <div class="contentS"><span class="nocomplate">未开始</span></div>
      </div>
      <div class="tableStyle">
          <div class="labelS">保养说明</div>
          <div class="contentS"></div>
        </div>
      </div>
    </el-card>
    <el-card shadow="always" class="box-card">
      <div class="tableTitle"><span>保养验收</span></div>
      <div>
        <div class="tableStyle">
          <div class="labelS">验收负责人</div>
          <div class="contentS">BX29834092812311</div>
          <div class="labelS">验收时间</div>
          <div class="contentS">2021-12-02 21:23:45</div>
        </div>
        <div class="tableStyle">
          <div class="labelS">实际验收人</div>
          <div class="contentS"></div>
            <div class="labelS">验收结果</div>
          <div class="contentS"></div>
        </div>
        <div class="tableStyle">
          <div class="labelS">验收说明</div>
          <div class="contentS"></div> 
        </div>
      </div>
    </el-card>
   
    <el-card shadow="always" class="box-card">
      <div class="headerStyle"><span class="tableTitle">保养项目</span>
      <span class="smallTitle">保养中管理的保养项目</span>
      </div>
      <el-table :data="tableData2" border style="width: 100%">
           <el-table-column
         label="序号"
      type="index"
      width="50">
    </el-table-column>
        <el-table-column prop="number" label="模块" >
        </el-table-column>
        <el-table-column prop="project" label="项目"> </el-table-column>
        <el-table-column prop="time" label="编号"> </el-table-column>
        <el-table-column prop="person" label="内容" > </el-table-column>
        <el-table-column prop="recordpic" label="结果"  > </el-table-column>
        <el-table-column prop="intr" label="是否异常"  > </el-table-column>
        <el-table-column prop="kinds" label="异常是否处理"> </el-table-column>
        <el-table-column prop="number" label="预防措施"> </el-table-column>
        <el-table-column prop="isexc" label="处理措施"  > </el-table-column>
        <el-table-column prop="pic" label="图片"  > </el-table-column>
 <el-table-column prop="result" label="验收结果"  > </el-table-column>
        <el-table-column prop="intro" label="验收说明"  > </el-table-column>
      </el-table>
    </el-card>
      </el-col>
      <el-col :span="8">
        <div class="icon-style">
          <div class="con-left" id="scrollBox">
               <el-card shadow="always" class="box-card">
                   <div  class="tableTitle">保养时间轴</div>
                   <div class="vertical">
            <el-card shadow="always" class="box-card " v-for="item in 4" :key="item">
              <div>
                <div class="headerStyle">
                    <span class="dottedS"></span>
                  <i class="el-icon-date" style="color: #0ccb82"></i>
                  <span style="color: #0ccb82">任务节点：创建节点</span>
                  <i class="el-icon-arrow-up status"></i>
                </div>
                <div class="contentStyle">
                  <div class="boxContent">
                    <span class="desc">故障描述：漏气</span>
                    <span class="status">
                      <i class="el-icon-success"></i>
                      正常
                    </span>
                  </div>
                  <div>
                    <span class="label">处理人：</span>
                      <span class="content">江龙</span>
                      </div>
                  <div>
                      <span class="label">执行时间：</span>
                         <span class="content"> 2021/11/21 12:00:00</span>
                          </div>
                  <div class="line"></div>
                  <div>
                    <span></span>
                    <span class="label timeTotal">用时：</span>
                    <span>6时32分</span>
                  </div>
                </div>
              </div>
              
            </el-card>
            </div>
               </el-card>
          </div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  data() {
    return {
      tableData: [
        {
          number: "GW923700-12312",
          planName: "喷涂机",
          devName: "海天",
          devNo: "喷涂",
          kind: "KJ*2990-1293",
        },
      ],
      tableData2: [
        {
        
          number: "1",
          project: "滑件",
          ways: "",
          type: "文本",
          low: "",
          high: "",
          choose: "",
          normal: "",
          pic: "",
        },
      ],
    };
  },
};
</script>
<style lang="scss" scoped>
@import "@/styles/color.scss";
.headerStyle{
   margin-bottom: 20px;

}
.tableTitle {
  color: #333;
  font-size: 16px;
  font-weight: bold;
 margin-bottom: 20px;
 
}
.smallTitle{
  color: rgba(153, 153, 153, 100);
font-size: 12px;
margin-left: 10px;
}
.devTitle {
  color: #262626;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}
.box-card {
  margin-bottom: 10px;
  .el-card__body {
    padding-top: 10px;
  }
  .labelS {
    //display: inline-block;
    flex:0 0 150px;
    //height: 40px;
    // margin-right: 10px;
    text-align: left;
    color: #606266;
    padding: 10px;
    border: 1px solid rgba(236, 240, 244, 100);
    margin-bottom: -1px;
  }
  .contentS {
    border: 1px solid rgba(236, 240, 244, 100);
    // height: 40px;
    color: #606266;
    width: 100%;
    margin-left: -1px;
    margin-bottom: -1px;
    padding: 10px;
    // margin: 10px 0;
    // width: calc(100% - 120px);
    // display: inline-block;
  }
  .tableStyle {
    display: flex;
  }
  .number{
      font-weight: bold;
      margin-top: 5px;
      font-size: 16px;
  }
  .nocomplate{
      color: white;
      background-color: #E83672;
      padding: 3px 5px;
      border-radius: 3px;
      font-size: 12px;
  }
  .complate{
     background-color: #78BF34;
  }
}
.con-left {
  
  font-size: 12px;
  position: relative;
  .headerStyle {
      .dottedS{
          width: 10px;
          height: 10px;
          display: inline-block;
          border-radius: 50%;
          background-color: #666;
          position: absolute;
          left: -6px;
      }
    color: #0ccb82;
    i{
        margin-right: 25px;
    }
  }
 ::v-deep.vertical{
      border-left: 2px dashed #EDEEF2;
      position: relative;
      padding-left: 10px;
      .el-card__body{
        padding: 10px 0 10px 10px;
      }
      .box-card {
    box-shadow: 0px 0px 7px 0px #eff2f5;
   
  }
  }
  .contentStyle{
      padding: 10px;
      .line{
          border: 1px solid rgba(236, 240, 244, 100);
          margin: 15px 0;
      }
  }
   .status{
          float: right;
          margin-right: 10px;
          i{
               color: #0ccb82;
                margin-right: 5px;
          }
      }
  .boxContent{
      background-color: #F6F6FC;
      font-size: 14px;
      height: 50px;
      line-height: 50px;
     margin: 10px 0 15px;
     position: relative;
      &::before{
          content: "";
          position: absolute;
          height: 50px;
          width: 5px;
          background-color: #DEDEE4;
          
      }
      .desc{
          margin-left: 10px;
      }
    
  }
   .label{
         color: #999;
         margin-right: 10px;
         display: inline-block;
         margin-bottom: 10px;
         width: 70px;
     }
     .content{
         color: #101010;
     }
     .timeTotal{
         margin-right: 20px;
     }
}

</style>
